package cn.hxzy.common.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 * 作业详细信息实体类
 * @author niuyi
 * @since 2024-06-22
 */
@Getter
@Setter
@TableName("task_manager")
@ApiModel(value = "TaskManager对象", description = "")
public class TaskManager implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("学生编号")
    private Integer studentId;

    @ApiModelProperty("作业编号")
    private Integer taskId;

    @ApiModelProperty("提交时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime submitTime;


    @ApiModelProperty("批复状态(0批复,1未批复)")
    private Integer approvalStatus;

    @ApiModelProperty("提交作业内容")
    private String taskTxt;

    @ApiModelProperty("批复教师的编号")
    private Integer teacherId;

    @ApiModelProperty("评分")
    private Double score;

    @ApiModelProperty("评语")
    private String comment;


    @ApiModelProperty("提交状态")
    private Integer commit;

    @TableField(exist = false)
    private String taskName;

    @TableField(exist = false)
    private String studentName;
}
